/*
*
* */
Rsd.define('Rsd.Faith.pages.BankZengZhiShouYiListPage', {
    extend: 'Rsd.Faith.pages.ListPage',
    requires: ['Rsd.controlEx.ComboBoxEnum','Rsd.Faith.controls.SuoShuQiInput'],
    xtype: 'list-pai_xi',
    border: false,
    formTitle: '增值收入',
    searchColumns:[{name:'SuoShuQi',text:'所属期',xtype:'ctrl-suoshuqi'},{name:'YinHangBianHao',text:'银行账号'}],
    newButtons:[{text:'添加增值收入',handler:'newItem'}],
    modelType: 'BankZengZhiShouYiModel',
    readOnly:false,
    sort:[{name:'KaiShiRiQi',direction:'desc'}],
    formFields:[
        {
            "name": "YinHangMingCheng",
            "label": {
                "width": 80,
                "content": "银行名称"
            },
            "dataIndex": "YinHangMingCheng",
            "index": 20,
            "exist": true,
            "xtype": "text",
            "length": 100
        },
        {
            "name": "YinHangZhangHao",
            "label": {
                "width": 80,
                "content": "银行账号"
            },
            "dataIndex": "YinHangZhangHao",
            "index": 20,
            "exist": true,
            "xtype": "text",
            "length": 100
        },
        {
            "name": "SuoShuQi",
            "label": {
                "width": 80,
                "content": "归属所属期"
            },
            "dataIndex": "SuoShuQi",
            "index": 23,
            "exist": true,
            xtype:'ctrl-suoshuqi',
            "length": 20
        },
        {
            "name": "RiQi",
            "label": {
                "width": 80,
                "content": "记账日期"
            },
            "dataIndex": "RiQi",
            "index": 24,
            "exist": true,
            "xtype": "text",
            "length": 30
        },
        {
            "name": "JinE",
            "label": {
                "width": 80,
                "content": "金额"
            },
            "dataIndex": "JinE",
            "index": 28,
            "exist": true,
            "xtype": "number",
            "precision": 2
        },
        {
            "name": "ZhaiYao",
            "label": {
                "width": 80,
                "content": "摘要"
            },
            "dataIndex": "ZhaiYao",
            "index": 30,
            "exist": true,
            "xtype": "text",
            "length": 200
        },
        {
            "name": "Remark",
            "label": {
                "width": 80,
                "content": "备注"
            },
            "dataIndex": "Remark",
            "index": 200,
            "exist": true,
            "xtype": "text",
            "length": 100
        }
    ],
    gridColumns:[
        {
            "text": "序号",
            "xtype": "index",
            "width": 40,
            "index": 0
        },
        {
            "name": "YinHangMingCheng",
            "dataIndex": "YinHangMingCheng",
            "sortable": false,
            "text": "银行名称",
            "index": 20,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },
        {
            "name": "YinHangZhangHao",
            "dataIndex": "YinHangZhangHao",
            "sortable": false,
            "text": "银行账号",
            "index": 20,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },

        {
            "name": "RiQi",
            "dataIndex": "RiQi",
            "sortable": false,
            "text": "记账日期",
            "index": 24,
            "exist": true,
            "xtype": "string",
            "width": 100,
            "nobr": true
        },
        {
            "name": "JinE",
            "dataIndex": "JinE",
            "sortable": false,
            "text": "金额",
            "index": 28,
            "exist": true,
            "xtype": "number",
            "width": 100,
            "precision": 2
        },
        {
            "name": "ZhaiYao",
            "dataIndex": "ZhaiYao",
            "sortable": false,
            "text": "摘要",
            "index": 30,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        },
        {
            "name": "SuoShuQi",
            "dataIndex": "SuoShuQi",
            "sortable": false,
            "text": "归属所属期",
            "index": 23,
            "exist": true,
            xtype:'string',
            "width": 100,
            "nobr": true
        },
        {
            "name": "Remark",
            "dataIndex": "Remark",
            "sortable": false,
            "text": "备注",
            "index": 200,
            "exist": true,
            "xtype": "string",
            "width": 150,
            "nobr": true
        }
    ],
    titleField : 'YinHangZhangHao',

    /*
     * */
    constructor: function (config) {
        config = config || {};
        Rsd.apply(this, config);
    },
    format_zhuang_tai:function (row) {
        return [Rsd.button('结算',function () {
            Rsd.showModelView();
        })];
    }


});